import React from 'react'
import { useLocation } from 'umi'

const Detail: React.FC = () => {
    const location=useLocation();
    console.log(location);
    return <div>
        <dl>
            <dt>
                <img src={location.state.item.CoverPhoto} alt=""/>
            </dt>
            <dd>
                {location.state.item.DealerPrice}
            </dd>
        </dl>
    </div>
}
export default Detail;